<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<html>
<head>
    <title>签收表列表</title>
    <%@ include file="/WEB-INF/jsp/public/commons.jspf" %>
</head>
<body>
 
<div id="Title_bar">
    <div id="Title_bar_Head">
        <div id="Title_Head"></div>
        <div id="Title"><!--页面标题-->
            <img border="0" width="13" height="13" src="${pageContext.request.contextPath}/style/images/title_arrow.gif"/> 签收表管理
        </div>
        <div id="Title_End"></div>
    </div>
</div>

<div id="MainArea">
    <table cellspacing="0" cellpadding="0" class="TableStyle">
       
        <!-- 表头-->
        <thead>
            <tr align="CENTER" valign="MIDDLE" id="TableTitle">
            	<td width="200px">标题</td>
                <td width="200px">用户</td>
                <td width="200px">交付方式</td>
                
                <td width="200px">资产编号</td>
                <td width="200px">记录者</td>
                
                <td width="200px">记录时间</td>
                   <td>相关操作</td>
                
            </tr>
        </thead>

		<!--显示数据列表-->
        <tbody id="TableData" class="dataContainer" datakey="userReceiptList">
        
        <s:iterator value="recordList" status="nowIndex">
			<tr  class="TableDetail1 template">
				<td><s:a action="userReceipt_show?id=%{id}">${title}&nbsp;</s:a></td>
				<td> <s:label value="%{user.name}"></s:label></td>
				<td> <s:label id="finished" readonly="true" value="%{delivery}"></s:label></td>
				<td> <s:label id="unfinished" readonly="true"  value="%{fixedAssts.fixAsstsNo}"></s:label></td>
				<td> <s:label value="%{recorder.name}"></s:label></td>
				<td> <s:label value="%{postTime}"></s:label></td>
				
				<td>
					<s:a action="userReceipt_delete?id=%{id}" onclick="return confirm('确定要删除吗？')">删除</s:a>
					<s:a action="userReceipt_editUI?id=%{id}">修改</s:a>
				</td>
			</tr>
        </s:iterator>



        </tbody>
    </table>
    
    <!-- 其他功能超链接 -->
    <div id="TableTail">
		<div id="TableTail_inside">
		<s:a action="userReceipt_setFixedAssts">新建签收表</s:a>
		
			<%-- <s:a action="userReceipt_addUI"><img src="${pageContext.request.contextPath}/style/images/createNew.png" /></s:a> --%>
        </div>
    </div>
</div>
<!--分页信息-->
		<%@ include file="/WEB-INF/jsp/public/pageView.jspf" %>

		<s:form action="userReceipt_list"></s:form> 
</body>
	<script>
/*     window.onload=function start(){
			//var value = $('#p').progressbar('getValue');
			//if (value < 100){
			//	value += Math.floor(Math.random() * 10);
			//	$('#p').progressbar('setValue', value);
			//	setTimeout(arguments.callee, 200);
			//}
/* 			value=$('#pro1').val()/$('#pro2').val()*100;
			value=Math.round(value*100)/100;
			$('#p').progressbar('setValue',value); */
			//all=$('#finished').val()+$('#unfinished').val();
			//value=$('#finished').val()/all;
			

/* 		window.onload=$(function(){
		  value1= $("[id=finished]").val();
		  value2=$("[id=finished]").siblings("tr").find('#unfinished').val;
		  value=value1/value2+value1;	
		  $("[id=finished]").siblings("tr").find('#p').progressbar('setValue',value);
		}); */
	</script>
</html>
